﻿@model WebUI.Models.CmsItem
@{
    ViewBag._newpage = "true";
    ViewBag.Title = Model.Title;
}
<style type="text/css">
    .page
    {
        width: 80%;
    }
    
    .cms-item-content
    {
        line-height: 27px;
        padding: 24px;
    }
    .cms-item-title
    {
        background-color: #f19149;
        color: White;
        line-height: 32px;
        padding: 8px;
        font-size: x-large;
    }
    
    .cms-item-content p
    {
        line-height: 27px;
        font-size: medium;
        text-indent: 28px;
    }
    .cms-item-content b, .cms-item-content strong
    {
        color: Black;
    }
</style>
<div style="text-align: right; background-color: #f1f1f1" class="cms-item-docinfo">
    本内容由&nbsp;[管理员]&nbsp;发布于&nbsp; @Model.UpdateTime.Value.ToString("yyyy年MM月dd日")</div>
<div class="cms-item-title">@Model.Title</div>
<div class="cms-item-content">
    @if (string.IsNullOrEmpty(Model.HtmlContent))
    {
        <span>查看 <a href="@Model.TextContent" target="_self">@System.IO.Path.GetFileName(Server.MapPath(Model.TextContent))</a></span>
    }
    else
    {
        @Html.Raw(Model.HtmlContent)
    }
</div>
